{% extends "base.html" %}
{% block page %}
    <div class="div"><p>PHP环境部署</p></div>
    <div align="center" style="margin-top: 8%">
        <form action="/deploy_php" method="post">
            {{ form.csrf_token }}
            <br>
            {% if g.grade == 0 %}
                <p>线上PHP环境部署(可多选):</p>
                <p>选择服务器:{{ form.select_produce( style="vertical-align:middle;",size=4)}} PHP版本:{{ form.ver_produce }}</p>
                {{form.submit_produce(class="btn btn-info")}}
                <hr width="25%" color=#987cb9 SIZE=1>
            {% endif %}
            <p>测外PHP环境部署(可多选):</p>
            <p>选择服务器:{{ form.select_test ( style="vertical-align:middle;",size=4)}} PHP版本:{{ form.ver_test }}</p>
            {{form.submit_test(class="btn btn-info")}}
        </form>
    </div>
    {% with messages = get_flashed_messages() %}
        {% if messages %}
            <div class="alert alert-success" style="display:inline-block;*display:inline;*zoom:1;">
                {% for message in messages %}
                    <p>{{ message }}</p>
                {% endfor %}
            </div>
        {% endif %}
    {% endwith %}
{% endblock page %}